package com.heima.reggie.service;

import com.heima.reggie.domain.Dish;
import com.heima.reggie.dto.DishDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author liulanhui
* @description 针对表【dish(菜品管理)】的数据库操作Service
* @createDate 2023-01-03 14:00:36
*/
public interface DishService extends IService<Dish> {
    List<Dish> selectDishByCategoryId(Long categoryId);

    void saveDishAndFlavor(DishDto dishDto);

    List<DishDto> getCategoryName(Integer page,Integer pageSize);

    DishDto getDishDtoById(Long id);

    void updateDishAndFlavor(DishDto dishDto);

    void deleteByIds(Long[] ids);

    void updateStatusByIdIn(Integer status , Long[] ids);



}
